/**
 * ...
 * @author Krzysztof Rozalski
 */

package hapi.facebook;
import hapi.facebook.externs.FacebookApiException;

class FacebookException {

	var message:String;
	public var nativeCause(default, null):FacebookApiException;
	
	public function new(message:String, ?nativeCause:FacebookApiException) {
		this.message = message;
		this.nativeCause = nativeCause;
	}
	
	public function toString() {
		return "Facebook exception: " + message;
	}
}